Skip to content

CLOUDPLAT-3162: add npm OIDC publish workflow (mapbox-gl-js)#13692

Closed
haseebehsan wants to merge 1 commit into
mainfrom
cloudplat-3162/add-npm-oidc-publish
Closed

CLOUDPLAT-3162: add npm OIDC publish workflow (mapbox-gl-js)#13692
haseebehsan wants to merge 1 commit into
mainfrom
cloudplat-3162/add-npm-oidc-publish

Conversation

@haseebehsan

Copy link
Copy Markdown

Summary

  • .github/workflows/npm-release.yml: new workflow_dispatch workflow that publishes to npm and creates a GitHub release using OIDC Trusted Publishing — no npm tokens required.
  • CONTRIBUTING.md: documents the release process — bump version, update CHANGELOG, merge PR, trigger workflow from Actions tab.
  • package.json: patch version bump and publishConfig: { access: "public" } for the scoped package.

Prerequisites before merging

The workflow uses an npm-release GitHub Environment as a release gate. Before merging, create it in this repo:

  1. Go to Settings → Environments → New environment, name it npm-release
  2. Under Deployment branches, restrict to the default branch (main)
  3. Under Required reviewers, add your team (or mapbox/team-mapbox to allow any Mapbox employee to approve)

Without this environment, the workflow will fail when triggered.

Trigger: once merged, run from the Actions tab → NPM release → Run workflow → approve the environment gate.

Ticket: https://mapbox.atlassian.net/browse/CLOUDPLAT-3162

@haseebehsan haseebehsan added the ai AI coding agents co-authored the code label Jun 24, 2026
@haseebehsan haseebehsan requested a review from a team as a code owner June 24, 2026 09:56
@haseebehsan haseebehsan requested review from mapboxit and removed request for a team June 24, 2026 09:56
@github-actions

Copy link
Copy Markdown

Hey, @haseebehsan 👋 Thanks for your contribution to Mapbox GL JS!

Important: This repository does not accept direct merges. All changes go through our internal review process.

What happens next:

  1. A team member will review your PR here first
  2. If it looks good, they will import it to our internal repository for further review
  3. If approved, changes will be synced back here via our release process

Please respond to any review comments on this PR. For more details, see CONTRIBUTING.md.

@mourner

mourner commented Jun 24, 2026

Copy link
Copy Markdown
Member

GL JS is released from the monorepo, not here.

@mourner mourner closed this Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai AI coding agents co-authored the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants